package com.cupdata.marathon.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
//@AllArgsConstructor
public class Result {

    private String code;
    private String message;

    public Result(String defaultMessage) {
        message = defaultMessage;
    }
    public Result(String defaultMessage, String defaultCode) {
        message = defaultMessage;
        code = defaultCode;
    }

    public Result( ) {
        code = "0000";
        message = "调用成功";
    }
}
